package FanShe.controller;

import FanShe.factory.BeanFactory;
import FanShe.service.StudentService;
import FanShe.service.StudentServiceImpl;


public class StudentController {
    public static void main(String[] args) throws InterruptedException {
        while (true) {
            StudentService studentService= (StudentService) BeanFactory.getBean("StudentService");
            studentService.add();
            studentService.delete();
            studentService.update();
            studentService.find();
            Thread.sleep(300);
        }
    }
}
